﻿namespace Jim.Http;
/// <summary>
/// 返回对象
/// </summary>
public class HttpResult
{
    /// <summary>
    /// 返回的String类型数据 只有ResultType.String时才返回数据，其它情况为空
    /// </summary>
    public string Html { get; set; }
    /// <summary>
    /// 返回的Byte数组 只有ResultType.Byte时才返回数据，其它情况为空
    /// </summary>
    public byte[] ResultByte { get; set; }
    /// <summary>
    /// header对象
    /// </summary>
    public HttpResponseHeaders Header { get; set; }
    /// <summary>
    /// 返回状态说明
    /// </summary>
    public string StatusDescription { get; set; }
    /// <summary>
    /// 返回状态码,默认为OK
    /// </summary>
    public HttpStatusCode StatusCode { get; set; }
    /// <summary>
    /// 最后访问的URl
    /// </summary>
    public string ResponseUri { get; set; }
    /// <summary>
    /// HttpItem类，用于存储实际执行所用到的HttpItem对象
    /// </summary>
    public HttpItem Item { get; set; }


}

